export default [
    {
        path: "/home",
        auth: ["管理员", "出题者", "浏览者"],
        component: () => import(/* webpackChunkName: "home" */ '../views/home/index.vue'),
        children: [
            {
                path: "questions",
                title: "试题管理",
                auth: ["管理员", "出题者", "浏览者"],
                component: () => import('../views/home/questions/index.vue'),
                children: [
                    {
                        path: "addQuestions",
                        title: "添加试题",
                        auth: ["管理员", "出题者"],
                        meta: {
                            title: ["首页", "试题管理", "添加试题"]
                        },
                        component: () => import('../views/home/questions/AddQuestions.vue'),
                    },
                    {
                        path: "classifyQuestions",
                        title: "试题分类",
                        auth: ["管理员"],
                        component: () => import('../views/home/questions/ClassifyQuestions.vue'),
                    },
                    {
                        path: "lookQuestions",
                        title: "查看试题",
                        auth: ["管理员", "出题者", "浏览者"],
                        component: () => import('../views/home/questions/LookQuestions.vue'),
                    },
                ]
            },
            {
                path: "user",
                title: "用户管理",
                auth: ["管理员", "出题者"],
                component: () => import('../views/home/user/index.vue'),
                children: [
                    {
                        path: "addUser",
                        title: "添加用户",
                        auth: ["管理员", "出题者"],
                        component: () => import('../views/home/user/AddUser.vue'),
                    },
                    {
                        path: "showUser",
                        title: "用户展示",
                        auth: ["管理员"],
                        component: () => import('../views/home/user/ShowUser.vue'),
                    }
                ]
            }
        ]
    }
]